 #ifndef __BSP_PSW_H__
#define __BSP_PSW_H__

/*PSW is the abbreviation of photoswitch*/

#include "Arduino.h"
#include <HardwareSerial.h>
#include <stdint.h>

typedef enum e_psw_id
{
    ulf_psw = 0b0001,
    urf_psw = 0b0010,
    ulb_psw = 0b0100,
    urb_psw = 0b1000,
    dlf_psw = 0b0001 << 4,
    drf_psw = 0b0010 << 4,
    dlb_psw = 0b0100 << 4,
    drb_psw = 0b1000 << 4

} e_psw_id;

#define UP_LF_PSW 38
#define UP_RF_PSW 39
#define UP_LB_PSW 40
#define UP_RB_PSW 41
#define DOWN_F_PSW 11
#define DOWN_B_PSW 10
#define DOWN_L_PSW 9
#define DOWN_R_PSW 8

void psw_Init(void);
void printPsw(void);
void getPsw(uint8_t *psw_level, uint8_t choice);
void choice_psw(uint8_t choice);

#endif
